package com.t194.util;

import com.github.pagehelper.PageInfo;

import java.util.List;

public class PageResult {
    private Long total;
    private List rows;

    public PageResult(){}
    public PageResult(List rows) {
        PageInfo pageInfo = new PageInfo(rows);
        this.total = pageInfo.getTotal();
        this.rows = pageInfo.getList();
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }
}
